<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Calm Tasks - Mood</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        .neumorphic {
            background: #f1f5f9;
            box-shadow: 
                20px 20px 60px #d1d9e6, 
                -20px -20px 60px #ffffff;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.2);
        }
        .neumorphic-inset {
            background: #f1f5f9;
            box-shadow: 
                inset 8px 8px 16px #d1d9e6, 
                inset -8px -8px 16px #ffffff;
            border-radius: 15px;
        }
        .status-bar {
            background: linear-gradient(90deg, #000 0%, #333 100%);
            height: 44px;
        }
        .tab-bar {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }
        .mood-emoji {
            font-size: 2.5rem;
            transition: all 0.3s ease;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
        }
        .mood-emoji:hover {
            transform: scale(1.1);
            background: rgba(255,255,255,0.5);
        }
        .mood-emoji.selected {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }
        .anxiety-slider {
            -webkit-appearance: none;
            appearance: none;
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(to right, #10b981 0%, #f59e0b 50%, #ef4444 100%);
            outline: none;
        }
        .anxiety-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            cursor: pointer;
        }
    </style>
</head>
<body class="h-screen overflow-hidden">
    <!-- iOS Status Bar -->
    <div class="status-bar flex justify-between items-center px-6 text-white text-sm font-medium">
        <div class="flex items-center space-x-1">
            <span>9:41</span>
        </div>
        <div class="flex items-center space-x-1">
            <i class="fas fa-signal text-xs"></i>
            <i class="fas fa-wifi text-xs"></i>
            <i class="fas fa-battery-three-quarters text-xs"></i>
        </div>
    </div>

    <!-- Main Content -->
    <div class="flex-1 p-6 pb-24 overflow-y-auto" style="height: calc(100vh - 44px - 83px);">
        <!-- Header -->
        <div class="text-center mb-8">
            <h1 class="text-2xl font-bold text-gray-800 mb-2">How are you feeling?</h1>
            <p class="text-gray-600">Your feelings are valid and important ✨</p>
        </div>

        <!-- Current Mood Selection -->
        <div class="neumorphic p-6 mb-6">
            <h3 class="text-lg font-semibold text-gray-800 mb-6 text-center">Today's Mood</h3>
            <div class="grid grid-cols-5 gap-2 mb-6">
                <div class="text-center">
                    <div class="mood-emoji">😢</div>
                    <p class="text-xs text-gray-600 mt-2 font-medium">Very Low</p>
                </div>
                <div class="text-center">
                    <div class="mood-emoji">😔</div>
                    <p class="text-xs text-gray-600 mt-2 font-medium">Low</p>
                </div>
                <div class="text-center">
                    <div class="mood-emoji selected">😐</div>
                    <p class="text-xs text-white mt-2 font-medium">Neutral</p>
                </div>
                <div class="text-center">
                    <div class="mood-emoji">😊</div>
                    <p class="text-xs text-gray-600 mt-2 font-medium">Good</p>
                </div>
                <div class="text-center">
                    <div class="mood-emoji">😄</div>
                    <p class="text-xs text-gray-600 mt-2 font-medium">Great</p>
                </div>
            </div>
        </div>

        <!-- Anxiety Level -->
        <div class="neumorphic p-6 mb-6">
            <h3 class="text-lg font-semibold text-gray-800 mb-4">Anxiety Level</h3>
            <div class="neumorphic-inset p-5 mb-6">
                <div class="flex justify-between items-center mb-4">
                    <span class="text-sm text-gray-600">Current Level</span>
                    <span class="text-sm font-medium text-yellow-600">Medium (4/10)</span>
                </div>
                <input type="range" min="1" max="10" value="4" class="anxiety-slider w-full mb-4">
                <div class="flex justify-between text-xs text-gray-500">
                    <span>😌 Calm</span>
                    <span>😰 Moderate</span>
                    <span>😨 High</span>
                </div>
            </div>
            
            <!-- Quick Anxiety Buttons -->
            <div class="grid grid-cols-3 gap-3">
                <button class="neumorphic-inset py-4 px-4 text-center hover:bg-green-50 transition-all">
                    <div class="text-green-500 text-2xl mb-2">😌</div>
                    <p class="text-xs text-gray-600 font-medium">Low</p>
                    <p class="text-xs text-gray-500">1-3</p>
                </button>
                <button class="bg-yellow-100 py-4 px-4 rounded-xl text-center border-2 border-yellow-200">
                    <div class="text-yellow-600 text-2xl mb-2">😰</div>
                    <p class="text-xs text-yellow-700 font-medium">Medium</p>
                    <p class="text-xs text-yellow-600">4-6</p>
                </button>
                <button class="neumorphic-inset py-4 px-4 text-center hover:bg-red-50 transition-all">
                    <div class="text-red-500 text-2xl mb-2">😨</div>
                    <p class="text-xs text-gray-600 font-medium">High</p>
                    <p class="text-xs text-gray-500">7-10</p>
                </button>
            </div>
        </div>

        <!-- Mood Triggers -->
        <div class="neumorphic p-6 mb-6">
            <h3 class="text-lg font-semibold text-gray-800 mb-4">What's affecting your mood?</h3>
            <div class="grid grid-cols-2 gap-3">
                <button class="neumorphic-inset p-3 text-center hover:bg-blue-50 transition-all">
                    <i class="fas fa-briefcase text-blue-600 mb-2"></i>
                    <p class="text-xs text-gray-700 font-medium">Work</p>
                </button>
                <button class="neumorphic-inset p-3 text-center hover:bg-green-50 transition-all">
                    <i class="fas fa-users text-green-600 mb-2"></i>
                    <p class="text-xs text-gray-700 font-medium">Social</p>
                </button>
                <button class="neumorphic-inset p-3 text-center hover:bg-purple-50 transition-all">
                    <i class="fas fa-home text-purple-600 mb-2"></i>
                    <p class="text-xs text-gray-700 font-medium">Family</p>
                </button>
                <button class="neumorphic-inset p-3 text-center hover:bg-pink-50 transition-all">
                    <i class="fas fa-heart text-pink-600 mb-2"></i>
                    <p class="text-xs text-gray-700 font-medium">Health</p>
                </button>
            </div>
        </div>

        <!-- Quick Notes -->
        <div class="neumorphic p-6 mb-6">
            <h3 class="text-lg font-semibold text-gray-800 mb-4">Quick Note</h3>
            <div class="neumorphic-inset p-4">
                <textarea 
                    placeholder="What's on your mind? (optional)"
                    class="w-full bg-transparent text-gray-700 placeholder-gray-400 resize-none outline-none text-sm leading-relaxed"
                    rows="3"
                >Feeling a bit overwhelmed with the dentist appointment today, but meditation helped this morning.</textarea>
            </div>
            <button class="w-full mt-4 bg-gradient-to-r from-blue-500 to-purple-600 text-white py-3 rounded-xl font-medium shadow-lg hover:shadow-xl transition-all">
                Save Mood Entry
            </button>
        </div>

        <!-- Recent Mood History -->
        <div class="neumorphic p-6">
            <h3 class="text-lg font-semibold text-gray-800 mb-4">This Week's Journey</h3>
            <div class="space-y-4">
                <div class="flex items-center justify-between p-3 bg-gradient-to-r from-green-50 to-blue-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <div class="text-2xl">😊</div>
                        <div>
                            <p class="text-sm font-medium text-gray-800">Yesterday</p>
                            <p class="text-xs text-gray-600">Good mood, low anxiety</p>
                        </div>
                    </div>
                    <div class="text-xs text-gray-500">8:30 PM</div>
                </div>
                
                <div class="flex items-center justify-between p-3 bg-gradient-to-r from-yellow-50 to-orange-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <div class="text-2xl">😐</div>
                        <div>
                            <p class="text-sm font-medium text-gray-800">Monday</p>
                            <p class="text-xs text-gray-600">Neutral, medium anxiety</p>
                        </div>
                    </div>
                    <div class="text-xs text-gray-500">7:15 PM</div>
                </div>
                
                <div class="flex items-center justify-between p-3 bg-gradient-to-r from-blue-50 to-purple-50 rounded-lg">
                    <div class="flex items-center space-x-3">
                        <div class="text-2xl">😔</div>
                        <div>
                            <p class="text-sm font-medium text-gray-800">Sunday</p>
                            <p class="text-xs text-gray-600">Low mood, high anxiety</p>
                        </div>
                    </div>
                    <div class="text-xs text-gray-500">9:45 PM</div>
                </div>
            </div>
        </div>
    </div>

    <!-- Tab Bar -->
    <div class="tab-bar fixed bottom-0 left-0 right-0 h-20 flex items-center justify-around px-6">
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-home text-gray-400 text-lg"></i>
            <span class="text-xs text-gray-400">Home</span>
        </div>
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-tasks text-gray-400 text-lg"></i>
            <span class="text-xs text-gray-400">Tasks</span>
        </div>
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-smile text-blue-600 text-lg"></i>
            <span class="text-xs text-blue-600 font-medium">Mood</span>
        </div>
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-chart-line text-gray-400 text-lg"></i>
            <span class="text-xs text-gray-400">Progress</span>
        </div>
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-cog text-gray-400 text-lg"></i>
            <span class="text-xs text-gray-400">Settings</span>
        </div>
    </div>
</body>
</html>